﻿using FairyGUI;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using LuaInterface;

namespace YanhuaMMO
{
    
    public class MulLanguageUtil
    {
        public delegate float DownLoadBranchProcess();

        public static LanguageType cur_language = LanguageType.Chinese;

        public static string GetBranchEndString(LanguageType lan)
        {
            string str = "";
            switch (lan)
            {
                case LanguageType.English:
                    str = "EN";
                    break;
                case LanguageType.Japan:
                    str = "JP";
                    break;
                case LanguageType.Chinese_Fan:
                    str = "TC";
                    break;
            }
            return str;
        }


        /// <summary>
        /// 获取本地分支资源地址
        /// </summary>
        /// <returns></returns>
        public static string GetLocalAssetsPath(LanguageType type)
        {
            string endstr = GetBranchEndString(type);
            string path = Util.DataPath + "FuiBranch/" + endstr.ToLower() + "/";

            return path;
        }
    }
}
